# $Id: PKGBUILD 66254 2012-02-23 05:25:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Packager: cs-cam - me.at.camdaniel.com

pkgname=obexfs
pkgver=0.12
pkgrel=3
pkgdesc="FUSE based filesystem using ObexFTP (currently beta)."
arch=('i686' 'x86_64')
url="http://openobex.triq.net/obexfs"
license=('GPL')
source=(http://triq.net/obexftp/$pkgname-$pkgver.tar.gz)
depends=('fuse' 'obexftp>=0.22')
md5sums=('0f505672b025cdb505e215ee707a2e2f')

build() {
  cd $srcdir/$pkgname-$pkgver

  export OBEXFTP_CFLAGS="-I/usr/include/obexftp -I/usr/include/multicobex -I/usr/include/bfb"
  export OBEXFTP_LIBS="-lobexftp -lmulticobex -lbfb -lopenobex -lbluetooth"

  ./configure --prefix=/usr
  make
  make DESTDIR=$pkgdir install
}
